/* Main app */
import { createApp } from 'vue'

// Root component
import App from './App.vue'

// Global stylesheets
import './assets/base.css'

// Plugins
import { setupPinia } from './stores'
import { setupRouter } from './router'
import { setupElementPlus } from "@/plugins";

// Create application bootstrap
const bootstrap = async () => {
    // Create new instance
    const app = createApp(App)

    // Setup plugins
    setupPinia(app)
    setupElementPlus(app)
    await setupRouter(app)
    app.mount('#app')
}

// Start application
bootstrap()
